﻿#define DEBUG
#define VC_V6      //写在下面不可以....
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace 预处理器指令if_else
{

    class Program
    {
        static void Main(string[] args)
        {
            #if(DEBUG && !VC_V6)
                        {
                             Console.WriteLine("DEBUG is defined");
                        }
            #elif(!DEBUG && VC_V6)
                        {
                            Console.WriteLine("VC_V6 is defined");
                        }
            #elif(DEBUG && VC_V6)
                        {
                            Console.WriteLine("Both are defined");
                        }
            #else
                        {
                            Console.WriteLine("Both are not defined");
                        }
            #endif
        }
    }
}
